﻿using DevExpress.XtraEditors;
using DXApplicationTangche.UC.订单.service;
using DXApplicationTangche.UC.面料库存.库存记录.service;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using static DXApplicationTangche.UC.订单.service.ViewSemiCheckExceptionDao.xxx;

namespace DXApplicationTangche.UC.报表
{
    public partial class Form面料图 : DevExpress.XtraEditors.XtraForm
    {
        public delegate void AddTabDataEvents(Form form);//定义委托
        public event AddTabDataEvents addTabDataEvents;//定义事件
        public Form面料图()
        {
         
            InitializeComponent();
            this.xtraUserControl分页.williamPagerEvent += this.refreshGrid;
            this.refreshGrid(1);
        }
        
        private void refreshGrid(int curPage)
        {
            //从DTO获取数据，绑定数据
            //API只要一行，原子性
            this.gridControl面料图显示.DataSource = 面料记录Service.getMaterialDTO((curPage - 1).ToString(), "5");
            this.advBandedGridView面料图显示.RefreshData();
        }
    }
}